﻿@namespace Masa.Tsc.Web.Admin.Rcl.Components

<div class="d-flex justify-space-between align-center @Class" style="@Style">
    <MLabel Class="emphasis2--text body">@Label</MLabel>
    <MSwitch Value="Value" ValueChanged="ValueChanged" TValue="bool"></MSwitch>
</div>

@code {
    [Parameter]
    public string Class { get; set; }

    [Parameter]
    public string Style { get; set; }

    [Parameter]
    public string Label { get; set; }

    [Parameter]
    public bool Value { get; set; }

    [Parameter]
    public EventCallback<bool> ValueChanged { get; set; }
}
